package com.xqboss.chain.bsn;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class ResultInfo<T> {

    public final static int SUCCESS = 0;
    public final static int FAIL = -1;

    @ApiModelProperty(value = "成功：0，失败：-1")
    Integer code;

    @ApiModelProperty(value = "用户id")
    T data;

    @ApiModelProperty(value = "此标记同时写入到日志文件中，方便查找")
    String errorLogCode;


    @ApiModelProperty(value = "都是消息编码，前端自行国际化处理")
    String message;



}
